-- GENERATED SPELL FOR [Mo'grosh Mystic] --


function spell0_1183(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_1183', 2500, 1)
end

function spell1_1183(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1183', 3000, 1)
end

function Sorts_1183(pUnit, Event)
local choix_sorts_1183 = math.random(0, 1)
if choix_sorts_1183 == 0 then
pUnit:RegisterEvent('spell0_1183', 1, 1)
end
if choix_sorts_1183 == 1 then
pUnit:RegisterEvent('spell1_1183', 1, 1)
end
end

function mob1183_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1183', math.random(1500, 3000), 1)
end

function mob1183_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1183_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1183_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1183, 1, 'mob1183_Action')
RegisterUnitEvent(1183, 2, 'mob1183_Leave')
RegisterUnitEvent(1183, 3, 'mob1183_Kill')
RegisterUnitEvent(1183, 4, 'mob1183_Die')
